const getters = {
  sidebar: state => state.app.sidebar, // 侧边栏
  language: state => state.app.language, // 国际化语言
  size: state => state.app.size, // 布局大小
  device: state => state.app.device, // 当前设备
  visitedViews: state => state.tagsView.visitedViews, // 页面标签
  cachedViews: state => state.tagsView.cachedViews, // 页面标签缓存页面
  token: state => state.admin.token, // token登录令牌
  userId: state => state.admin.userId, // 系统登录的用户id
  avatar: state => state.admin.avatar, // 用户头像
  name: state => state.admin.name, // 用户名
  menus: state => state.admin.menus, // 供addrouter动态添加路由的路由表
  permission_routes: state => state.admin.routes, // 供侧边栏渲染的路由表
  user: state => state.user.user
};
export default getters; // 抛出所有state数据
